summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierNum.java
blob: 9d75e83239b1d4c94a58b54f0c57891c01a34c02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.uic.barcode.ticket.api.asn.omv1;

import java.util.Collection;
import java.util.List;

import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
import org.uic.barcode.asn1.datatypes.IntRange;

@IntRange(minValue=1,maxValue=32000)
public class SequenceOfCarrierNum extends Asn1SequenceOf<Long> {
    public SequenceOfCarrierNum() { super(); }
    public SequenceOfCarrierNum(Collection<Long> coll) { super(coll); }
	

	public SequenceOfCarrierNum(List<Long> numbers) {
		super();
		for (Long number: numbers){
			this.add(new Long(number));
		}
	}
	public static SequenceOfCarrierNum getSequence(List<Long> numList) {
		if (numList == null || numList.isEmpty()) return null;
		return new SequenceOfCarrierNum(numList);
	}
	
	
    
}